package cn.rocksolid.sport.security.service;

import cn.rocksolid.sport.security.entity.UserEntity;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Collection;

/**
 * System User service
 *
 * @author Axl Zhao
 * @email axl.zhao@163.com
 */
public interface UserService extends IService<UserEntity> {

  UserEntity exist(final UserEntity userEntity);

  IPage<UserEntity> paging(final IPage<UserEntity> page, final JSONObject cond);

  UserEntity get(final String id);

  void refreshAdminPerms(final UserEntity userEntity);

  void create(final UserEntity user);

  void modify(final UserEntity user);

  void removes(final Collection<String> ids);
}
